package pub.guoxin.oops.auth.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel
public class UserInfoChangeVo {

    @NotNull
    @Size(min = 2, max = 50)
    @ApiModelProperty(value = "姓", required = true)
    private String name;

    @NotNull
    @Size(min = 11, max = 11)
    @ApiModelProperty(value = "手机号", required = true)
    private String username;

}
